package zhu.areas.tenderbid.data;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import zhu.areas.dic.data.AuditStatue;
import zhu.areas.dic.data.FieldType;
import zhu.areas.user.data.User;

/**
 * @hibernate.class  table="T_TenderApp"   dynamic-insert="true"  dynamic-update="true"
 * @author Administrator
 *
 */
public class TenderApp  implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	private  int   proID;    //项目ID
	private  String   name;	   //项目名称
	private  String   summary;   //项目概要
	private  String   detail;   //项目详情
	private  Date   endDate;    //截止日期
	private  String   contact;   //联系方式
	private  Float   money;   //预算金额
	private  String   address;    //附件在服务器地址
	private  FieldType   field;     //所属行业
	private  AuditStatue   statue;    //当前状态
	private  Date   appTime;    //申请时间
	private  Date   pubTime;    //发布时间
	private  Date   disTime;    //分配时间
	private  Date   endTime;    //分配时间
	
	private  User   app;    

	private  String appName;



	private Set tenderDisps = new HashSet(0);
	private Set  tenderComms = new HashSet(0);
	
	public  TenderApp(){
		
	}
	           //带参构造方法，主要是用于映射查询
	public  TenderApp(int proID){
		this.proID=proID;
	}
	
	public  TenderApp(int proID,String name){
		this.proID=proID;
		this.name=name;
	}
	

	/**
	 * @hibernate.id column="ProID"  generator-class="increment"  unsaved-value="null"
	 * @return
	 */
	public int getProID() {
		return proID;
	}
	public void setProID(int proID) {
		this.proID = proID;
	}
	
	
	/**
	 * @hibernate.property column = "Pname"  not-null="true"
	 * @return
	 */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	/**
	 * @hibernate.property column = "PSummary"    not-null="true"
	 * @return
	 */
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	
	
	/**
	 * @hibernate.property column = "PDetail"   not-null="true"
	 * @return
	 */
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	
	
	/**
	 * @hibernate.property column = "EndDate" 
	 * @return
	 */
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	
	
	/**
	 * @hibernate.property column = "Contact"   not-null="true"
	 * @return
	 */
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	
	/**
	 * @hibernate.property column = "PMoney"    not-null="true"
	 * @return
	 */
	public Float getMoney() {
		return money;
	}
	public void setMoney(Float money) {
		this.money = money;
	}
	
	
	
	/**
	 * @hibernate.property column = "PAddress"  
	 * @return
	 */
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	
	
	/** 
	*@hibernate.many-to-one class="zhu.areas.dic.data.AuditStatue"    not-null="true"
	* column="PStatue" 
	*/
	public AuditStatue getStatue() {
		return statue;
	}
	public void setStatue(AuditStatue statue) {
		this.statue = statue;
	}
	
	
	
	/**
	 * @hibernate.property column = "AppTime"    not-null="true"
	 * @return
	 */
	public Date getAppTime() {
		return appTime;
	}
	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}
	
	
	
	/**
	 * @hibernate.property column = "PubTime" 
	 * @return
	 */
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	
	
	
	
	/** 
	*@hibernate.many-to-one class="zhu.areas.dic.data.FieldType"   not-null="true"	
	* column="PField" 
	*/
	public FieldType getField() {
		return field;
	}
	public void setField(FieldType field) {
		this.field = field;
	}
	
	
	
	/**
	 * @hibernate.property column = "DisTime" 
	 * @return
	 */
	public Date getDisTime() {
		return disTime;
	}
	public void setDisTime(Date disTime) {
		this.disTime = disTime;
	}
	
	
	
	/**
	 * @hibernate.property column = "EndTime" 
	 * @return
	 */
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	
	
	/** 
	*@hibernate.many-to-one class="zhu.areas.user.data.User"	  not-null="true"
	* column="AppID" 
	*/
	public User getApp() {
		return app;
	}
	public void setApp(User app) {
		this.app = app;
	}
	
	
	
	/**
	 * @hibernate.property column = "AppName"    not-null="true"
	 * @return
	 */
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	
	
	
	/**
	 * @hibernate.set table="T_TenderDisp" inverse="true"  lazy="true"
	 * @hibernate.collection-key column="AppFormID"
	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.TenderDisp"
	 */
	public Set getTenderDisps() {
		return tenderDisps;
	}
	public void setTenderDisps(Set tenderDisps) {
		this.tenderDisps = tenderDisps;
	}
	
	
	
	/**
	 * @hibernate.set table="T_TenderComm" inverse="true"	lazy="true"
	 * @hibernate.collection-key column="AppFormID"
	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.TenderComm"
	 */
	public Set  getTenderComms() {
		return tenderComms;
	}
	public void setTenderComms(Set  tenderComms) {
		this.tenderComms = tenderComms;
	}
	
	

}
